lcBlockAddText2 Home

Adds a new text object into a block.

 HANDLE lcBlockAddText2 (
   HANDLE hBlock,
   LPCWSTR szText,
   double X,
   double Y,
   int Align,
   double Height,
   double WScale,
   double RotAngle,
   double Oblique
 );

Parameters
hBlock
  Handle to a block.
szText
  Text string. It can contain formatting codes which allow to add specific characters.
X Y
  Coordinates of the Text insertion point.
Align
  Text alignment relative to the insertion point.
Height
  Text height, in drawing units or pixels (if negative).
If 0 - ByStyle, LC_PROP_TSTYLE_HEIGHT value will be used, <0-pixel height, -1-default GUI size.
WScale
  Text width factor (horizontal scale).
If 0 - ByStyle. LC_PROP_TSTYLE_WSCALE value will be used.
RotAngle
  Rotation angle.
Oblique
  Oblique angle for text characters, in degrees.
If 0 - ByStyle. LC_PROP_TSTYLE_OBLIQUE value will be used.

Return Value

  Handle to created text object or NULL if the function fails.

Remarks

  If zero is specified for parameters Height, WScale or Oblique, then text style values will be used for this text object.

See Also

  lcBlockAddTextText style